package com.company;

/**
 * @description:
 * @author: 10445
 * @date: Created in 2020/5/13 16:00
 * @version: v1.0
 * @modified By:
 */
public class Person {
    private  int p_Age;
    private  String p_Sex;
    private String id;
    private  String p_name;

    public Person() {
    }

    public Person(String id) {
        this.id = id;
    }

    public void driveTransport(Aircraft aircraft){
        System.out.println("driving aircraft" +aircraft.getId());
    }
    public void driveTransport(Airship airship){
        System.out.println("driving airship" +airship.getId());

    }
    public void driveTransport(Automobile automobile){
        System.out.println("driving automobile" +automobile.getId());

    }
    public void driveTransport(Bicycle bicycle){
        System.out.println("driving bicycle" +bicycle.getId());

    }
    public void driveTransport(HotAirBallon hotAirBallon){
        System.out.println("driving hotairballon" +hotAirBallon.getId());

    }
    public void driveTransport(Hovercraft hovercraft){
        System.out.println("driving hovercraft" +hovercraft.getId());

    }
    public void driveTransport(Motorcycle motorcycle){
        System.out.println("driving motorcycle" +motorcycle.getId());

    }
    public void driveTransport(Ship ship){
        System.out.println("driving ship" +ship.getId());

    }
    public void driveTransport(Submarine submarine){
        System.out.println("driving submarine" +submarine.getId());

    }

    public int getP_Age() {
        return p_Age;
    }

    public void setP_Age(int p_Age) {
        this.p_Age = p_Age;
    }

    public String getP_Sex() {
        return p_Sex;
    }

    public void setP_Sex(String p_Sex) {
        this.p_Sex = p_Sex;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getP_name() {
        return p_name;
    }

    public void setP_name(String p_name) {
        this.p_name = p_name;
    }
}
